package cn.dkk.create_design.builder;

import cn.dkk.create_design.builder.pojo.Bike;

/**
 * @author dkk
 * @date 2022/7/10
 * @desc 构建构建者
 */
public abstract class BikeBuilder {

    Bike bike=new Bike();

    abstract void setSeat();

    abstract void setSkeleton();

    /**
     * 组装过程相同,但是创建出的产品不同
     */
    public Bike build(){
        setSeat();
        setSkeleton();
        return bike;
    }

}
